﻿using System;
using System.Runtime.Serialization;

namespace HHMMS.WorkFlow.Model
{
	/// <summary>
	/// 工作流实例实体。
	/// </summary>
	public class WorkflowInstance
	{
		/// <summary>
		/// 实例ID
		/// </summary>
		public string InstanceId{ get; set;}

		/// <summary>
		/// 流程实例名称
		/// </summary>
		public string InstanceName{ get; set;}

		/// <summary>
		/// 所属工作流ID
		/// </summary>
		public int? WorkflowId{ get; set;}

		/// <summary>
		/// 流程开始时间
		/// </summary>
		public DateTime? StartTime{ get; set;}

		/// <summary>
		/// 流程结束时间
		/// </summary>
		public DateTime? EndTime{ get; set;}

		/// <summary>
        /// 流程状态：0：未开始流转 1：流转中 2：正常结束 3：中途结束
		/// </summary>
		public int? InstanceStatus{ get; set;}

		/// <summary>
		/// 创建人ID
		/// </summary>
		public string CreatorId{ get; set;}

		/// <summary>
		/// 创建人名称
		/// </summary>
		public string CreatorName{ get; set;}

		/// <summary>
		/// 创建人部门ID
		/// </summary>
		public string CreatorDeptId{ get; set;}

		/// <summary>
		/// 创建人部门名称
		/// </summary>
		public string CreatorDeptName{ get; set;}

		/// <summary>
		/// 业务数据主键
		/// </summary>
		public string DataKey{ get; set;}

		/// <summary>
		/// 当前代办的活动
		/// </summary>
		public int? CurrentAcivityId{ get; set;}

		/// <summary>
		/// 当前活动名称
		/// </summary>
		public string CurrentAcivityName{ get; set;}

	}
}